<?php
require_once("./bm_header.php");
$cache_time=1;
require_once('./include/cache_start.php');

	if (isset($_SESSION['user_id']))
	{
		$user_id=$_SESSION['user_id'];
		require_once("bm_footer.php");
		echo "<script language='javascript'>\n";
		echo "alert('用户".$user_id."已登录');\n";
		echo "window.location=\"$BM_HOME\"";
		//echo "history.go(-1);\n";
		echo "</script>";
		exit(0);
		echo "<a href=\"$BM_HOME\">用户".$user_id."已登录!</a>";
		require_once("bm_footer.php");
		exit(1);
	}
require_once("template/".$BM_TEMPLATE."/loginpage.php");
/////////////////////////Common foot
require_once("bm_footer.php");
if(file_exists('./include/cache_end.php'))
	require_once('./include/cache_end.php');
?>

